﻿using PHMEE.Localization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;

namespace PHMEE
{
    public class PHMEEPermissionDefinitionProvider : PermissionDefinitionProvider
    {
        public override void Define(IPermissionDefinitionContext context)
        {
            var phmeeGroup = context.AddGroup(PHMEEPermissions.GroupName);

            var auditPermission = phmeeGroup.AddPermission(PHMEEPermissions.AuditLog.Default, L("Permission:AuditLog"));
        }

        private static LocalizableString L(string name)
        {
            return LocalizableString.Create<PHMEEResource>(name);
        }
    }
}
